Added angular, and cleaned up the client code. Should be much more stable now. Some other things, but I can't remember...this commit took too long.