Refactor filesystem, Drush, shell utilities

The ultimate aim is to get rid of the PlatformCommand and EnvironmentCommand classes