Fixed some bugs and made minor updates to the backend scripts.
(Give read/write permission to users on the 'var' directory to avoid 500)
Reverted to previous permissions(644) for changed files
Merge pull request #11 from lucyd/backend

Updates from lucyd. Original comment from pull-request #10:

Give read/write permission to users on the 'var' directory to avoid 500(https://code.djangoproject.com/wiki/NewbieMistakes#DjangosaysUnabletoOpenDatabaseFilewhenusingSQLite3)
Resolved an AttributeError issue in weatherapp/views.py caused due to incorrect typecast. Apparently this bug was present in the older version as well.
Added a config option to check deploy time only in production as suggested by karsten. This ensures that for testing purposes, our database is properly populated with relay details.
For now, users can subscribe for relay notifications via the web form but the send-confirmation email thread doesn't seem to be working.