webserver refactor is now complete. Now persisting data collected from phone.