Allow element and attr injections

The controller in ui-router is really a 'directive controller' as it is tied with $ViewDirective. In Angular.js this type of controller is injectable with $element and $attr, so i've copied the same to here as well. 

 I needed it to manipulate the $element (specifically, for animation of the ui-view).