Angular

I rewrote the frontend to use Angular. I changed most of the views to return JSON instead of HTML. I deleted all the templates. I tested it a little. I think this is good enough to merge and then hack on if there are any outstanding issues.

r?