RESTful brains.js server