Not too long ago I've come across one article which I think you could find helpful. Somebody will take a steaming dump all over it, but it answered some of my questions. 
http://apnarbazar.com/?p=2663