This PR removes $apply calls where possible to avoid bad performance impacts of ui-layout in large applications.
Fixes #207.
See this plunker for a fixed version of the issue.