Create Home model

* Move business logic from homes controller to home model