some fixes and enhancements

diff contains a few fixes to the existing library and some enhancements (e.g. support for using different API versions within Nexpose for adhoc queries)