added authentication to the rest of the api commands
added authentication to the rest of the api calls, merged groups.js