add initializeDataContext(string) to CVM

Also added currentState() to stateManager so that the current state can
be retrieved. This was for mediaChangeHandler in particular.
Merge branch 'lazyLoad'