Secure and fast framework for implementing APIs in Ruby on top of EventMachine