proper handling of generic communication errors

queryDevice: check the result is not NULL, throw RTGatewayError otherwise.
allow 3rd-party JQ.UI autocomplete inputs

tag-it-local.js used to override the
.ui.autocomplete.prototype._resizeMenu handler for all autocomplete
menus.

Make it doing this only for tagit's inputs.