added loopback namespacing to custom directives
restructure dealer module code to conform to Angular best practices