Refactoring of endpoints and pipeline.
This is now controlled completely by the ApplicationHost for simplicity. Serialization of ports implemented. There can be only one endpoint per port.