Mayor backend and API code added

There are still many things to add, including the frontend, the
User-system and alot of bugfixes