Based on ampersand-model to be used with socket.io