Filled in all functions, added index and redirect files to show authorization flow