Fabric fixes

This pull request fixes the fabric deployment stuff - to an extent. 
* Postgres installation and configuration
* finishing moving config file to template
* sudofying some commands
* PEP8ifying
* typos
* Jinja optimizations
* less eager module importing