Reworked the current tests to wokr with UUIDs.

- Moved the tests in to there own directory called "tests"
- Cleaned up some backend functions
- Changed the various usernames used through out the tests to be more consistent- Other various fixes see diff.

Please note there is still a massive amount of work to do.