Updating dependencies and adding notify.rb code from https://gist.github.com/4271452
Make the server use only one app.
Add gitignore for pem files
Initial migration and database config
Done with main logic. Need to add reset and event based timing.