I have seen something similar in a different thread. You will probably find certain parts of that article useful, not everything obviously, but I believe it is worth looking into. 
http://hidroluz.com.br/proper-solutions-for-all-your-creating-wants/