SDK changes to better support automated testing with casperjs.