Finish helper functions

Created a helper.rb file that contains the helper functions for the auth-client
indent rescue to same level as begin