Adding Rails server code, copied from kclough/solarsunflower