Sinatra-based RESTful API for Flippy iOS app