Added some authorization stuff and some user thingamajig. I seem to have broken a bunch of tests when I upgraded to Ruby 2 so Ill have to fix that at some point...