some more iphone stuff and added some rest endpoints for the iphone