Add TimeActive demo and use a factory.
Merge branch 'master' of https://github.com/senseobservationsystems/cortex-mobile-demo