Change storage server to check for event origin being the string 'null'.

Previously it was checking for the string to be be null.

Also moved test module() calls inside individual specs to avoid affecting other tests.
Convert 'is Chrome app' flag to use a provider.

This is done so that it can be accessed in config() blocks.