On register, server now checks if username already exists. Added authenticate_token function. Added post for api/folders to create a folder