refactored files

began refactoring home and map.... setting it up to pull out logic from controllers to services, etc.