Migrate to v1 api

This PR follows #25 from demonbane. 

It upgrades the last few calls which weren't using v1 API, and fixes some tests which weren't passing.