[CXF-5379]mark swagger dependency as optional|use relative context path|remove potential concurrent thread issue

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1540607 13f79535-47bb-0310-9956-ffa450edef68