rest WIP
Merge commit 'd3ff343e5ee02a14dd17d6cf947aa7f52857474a' into feature-restapi

Conflicts:
	framework/helpers/BaseArrayHelper.php
Merge commit '24e086deaf6336706624e77cc0f63a7062280821' into feature-restapi
rest WIP
Merge commit 'ec05c0eaf7060d13a23828c0c2e64137dde4bd61' into feature-restapi
Merge commit '4891aa79bf80d5f6f1a50d71e43b3eb49cc1fe85' into feature-restapi
rest api WIP
test break fix.
Fixed incorrect error handling.
Support for other auth types.
updated error code.
Finished HATEOAS  support.
Renamed `User::loginByToken()` to `loginByAccessToken()`.
support authentication via query parameter.
added support for rate limiting.
Refactored auth methods.
Implemented rate limiter.
more docs.
REST wip.
`User` here