case, mediatype, and pathsegment optimizations
Merge pull request #445 from patriot1burke/master

case, mediatype, and pathsegment optimizations