Hash Cost Update

Updated the doRegistration function within the Authenticate class to accept variable cost options for creating hashes, based on the server resources.