Removed old library refrence and added HTTParty support
Added function for shortening the authorization URI