Fixed a bug on load.

There was a bug where the class wouldn't be set to active if you are building your urls inside of a ng-href. The timeout fixes this issue.

I also updated the code to clean up any events when the scope is destroyed.