Refactored Web project and moved common code into its own project so that this can be used by monitoring agent.