Return meaningful error messages and correct exit value.

Also, rather than return an empty table if an invalid attribute path
is specified with -g, return the parent of where the absent element so
there is still something returned.
Improved error handling in event bridge cannot be reached.
Added registration functionality to both API and huectl.

Remember, you must press the link button before you attempt to
register a username. It is up to the user to do this.