Change namespaces and prefixes for API-classes

This changeset does not change the prefixes of the modules,
and all behavior should remain the same.

Patchset 3: Mostly a rebase with some reordering of lines
Patchset 5: Rebase and some fixes to get the rebase working
Patchset 7: Yet another rebase +fixes
Patchset 9: Yet another..

Change-Id: Id5aca089151063022dd0468e37589b54f78c7e3e