Split api into multiple classes
Add basic rights setup