helper classes for using the API in a web environment.