Added Tests for User Menu

Additionally, scripts used by nearly every page on the site have been moved to application-main.js.

@dsjen @rocha
Should we test if the element is visible too?