Added isConnected condition.

This prevents DataShuttle from registering commands if it failed to
connect or is else wise not ready.
Added error returns and hash generator.
Error handler and update for new returns.