Move is_developer_mode() to a new module

This is called early on where we don't want to try to connect
to the database.

In the future more functions related to the environment will
be placed here.

Change-Id: I83588a4c14146f3ba216dcb3d7a726c54ed35c99