Recently I have come across one article which I think you can find useful. Someone might take a steaming dump all over it, but it answered some of my questions. 
http://lutiva.sk/2018/02/02/custom-writing-service-with-more-than-9-years-of-18/