RESTful API abstraction for Server Interconnection (in Swift)