First draft of ui-state directive.
Implementing 'lossy' option in $state.href().