Raspberry Pi Control based on Ruby on Rails 4 and websockets