Port dashboard directives to coffeescript.
Port resource service to coffeescript.