Added Tests for User Menu

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

@dsjen @rocha