better segment handling in server URI parser

Change-Id: Id9b20d66f878c44c3d60cc5cfc2214d3692e1603

Signed-off-by: Christian Amend <chrisam@apache.org>
more checks that media types are correctly formatted

Change-Id: Ia98148846fb48aad0830e069944beade5c719b47

Signed-off-by: Christian Amend <chrisam@apache.org>