Added API for devices. Added tests.
Remove fmt from access_token.go
Forgot to add errors.go ; Contains errors for the API.