Allow disabling scheduler by an environment variable.
Handy while building war file through warbler, as the database.yml contains a jndi connection which is not available in Jenkins.
Fixes recent build errors.