refactor angular app to separate services and directives from main app
modify drawing directive to support plot data attribute