Adds authorizations support.
Fixes some bugs.
Adds some doc.
Completes some implementations.