On-site wastewater systems and resource recovery