Query, Image improvements

Improves handling of queries, dependency injection of asset retrieval,
and adds the DB.get() method, which attempts to convert incoming blob
data to the appropriate type.

This commit also adds the ability to read incoming arrays of byte values
as an image.  Please note that this does not yet support Java array
types; arrays must first be unwrapped to be detected correctly.  A more
optimized solution is being investigated.