Initial (unfinished) conversion to Sails