[ALOY-871] Custom TSS device queries

Implements the change described at https://github.com/appcelerator/alloy/pull/263#issuecomment-27571866 and would resolve https://jira.appcelerator.org/browse/ALOY-871