Changed api structure, added basic API for groups