Refactoring

* Replaced all tabs with spaces (was a mix)
* Moved methods into modules
* Implemented Host/Availabilities and missing Host/Properties methods
* Renamed `hosts_properties` to `host_properties`