[WIP] Schedule editor angular prototype

The basic functionality of the schedule editor is converted to Angular in this PR.

It's still a WIP since I'm trying to figure out the Jasmine stuff for our CI server, and also looking at the full PR, there is a lot of stuff that has changed that should probably be updated (such as the dollar_j.js).
why is this function defined locally and not on the `$scope` object?