Allow passing optiuons to API helper methods

To allow apps to pass in things like credentials without having to rely on constant names baked into the helpers.


Also corrects the name of a constant in the asset-manager test helper.