Changed how config.js works

* Environment detection is done inside config.js
* Added general settings
Modified Datasource.js

Added nextPull and interval properties; the latter powered by moment.