Upgrades to Restful API and fixes tests.
Switches to improved arrow api.
Empties pin on verification