Remove the unused panels.html file
Add unit tests for the AccountManagement controller

Also moved the code out of the directives module and into it's own file.
Merge pull request #1376 from hypothesis/account-management-controller-tests

Account management controller tests.