Adds token authentication, no tests yet