First draft of ui-state directive.