Adamdev

Wrote the functionality to move heredocs into 'templates'.  Database.yml is now a template and so are the flash_messages.  

Next up is to clean the rest of the heredocs up.