Expose resolved locals to $stateChangeSuccess event

this commit adds toLocals and fromLocals parameters
to the $stateChangeSuccess event similar
to the "locals" property for the parameters on the
$routeChangeSuccess event on angular core.