Added more prototyped api functionality,
UpgradeUnmanagedServerAndDatabase in api.

Some test formatting, will need more work on them.

Removed a projectId from the token, and added it to the functions that implied its containment within the token.

Some core test and mocks improvements. Token is now global for tests.