generate rails app and minor setup
move application and database files to templates and gitignore the real ones. Remove public index.