# 1767, moved to nconf for server configuration, use json file instead of js file to store server configuration.

We need to store global fetching flag. Using mongo table to store server configuration and preferences seemed overkill. Hence moved server configuration and preferences to json managed by nconf, which can be changed at runtime as well
# 1767 store fetching status in secrets.json file. Fetching controller reads this status in 'get fetching' api call.
Only fetching controller updates this status in response to 'set fetching' api call, and raises the appropriate event (as before).

On startup, bot master reads this status on its own and enables/disables itself.
# 1767 review comments from Tom implemented

removed all actual secrets from secrets example file
allowed comments in secrets.json, used jsmin to strip off comments
stored server preferences (fetching flag) in a separate file
#1767 checking in secrets.js file which is now a source code file
#1767 new line added as per review comment
Merge branch 'develop' into Issue_1767
Merge branch 'Issue_1767' into develop