Merging refactor into master

New version of OpenFarm. Refactored from PHP to Rails