Fix for #774: made uiView link function manipulate the el passed into it...

Fix for https://github.com/angular-ui/ui-router/issues/774
The element from compile step was being used during link function. However, the element had been removed from dom and replaced by a parent directive, so all link operations were occuring against a detached dom node.  All tests pass.