One settings file for all

Also autoload settings accordingly to environment variables.
.js file, contains functions to return a query based on parameters
Not sure what I changed...
Merge branch 'querygen' into shovon
Added an `areHoursSame` function
Finished writing the insertHourlyTotal

However, it has not been implemented, yet.
Hourly data now works
The hourly totals are being calculated proerly
Now inserting min and max values.
Everything is now ready

So we are now able to get data from the middleware, and then insert it
into the database.

The deploy script works very well, ensuring that settings stay separate
from the actual source code.
Merge branch 'shovon' into wip
Merge branch 'wip'