Cleaned up the main library file a bit.  Fixed the way locators are sent to the api via querystring.