Initial attempt at making user menu a AngularJS directive.