Add TimeActiveDemo and update for latest cortex.

Added a demo for the TimeActiveSensor. Updating for latest cortex name changes.