refactoring mock server
Added mock server authentication for new user. Existing user fix needed and some cleanup.-  WIP
Adding caps to all remaining mock APIs