RESTful API for social iphone app