Refactored code in routes home and machines to not repeat myself, return more complete data when administering change.