Normalize context paths when assigning them to WebApplicationMetadata. Makes sure the context starts with a slash and no slash is located at the end of the context.