Adding Basic auth and some helper methods. Adding /groups end point too