An basic implementation of rails active record for use with opaljs