Added first implementation of ticketing system

Minor changes include a better tested login, a register giving out an
auth on register, and more!
Now API conformant! Yeah!

Also fixed some JSON bugs I think