added controller
Merge branch 'master' of https://github.com/jstadnicki/angular.diagrams