Modified sample app to account for new API
Make sure all HTTP requests pass through SC's http handler first
Fixed test to work with API changes