Integration branch for new oauth module. Missing docs and tests.
Oops, merge trunk head, started branch way too far in the past.
Integrated changed by Javi after verification that it works.
Added documentation for oauth, written by JaviP, with editing by myself.
Made the oauth package official. Plus updated local docs.