moved client from rails server, initial commit