test(common): update to new API definition
refactor($stateParams): fluent interface
implement transition hooks
refactor($state): migrating handler functions