Implemented a lot of the required code for site communication. Not entirely right, but close enough to start testing and debugging.