Added debug package
Changed the scrutcture of the API to make it simpler to use. Added tests to make sure that we can use tokens to authenticate users.