Provide authentication helper, better handle authentication based on a secure id
Use constant as app exit codes.