add path2url
prepare for resolve external $ref
Merge branch 'master' into json_reference
Merge branch 'master' into json_reference
add container_apply to simplify routine to handle ContainerType
BaseObj.merge now deep copy everything
deref of cascade $ref
more test conditions
prepend / for shortcut
remove tailing space
DFS circle detection
fix cycle detection
cycle detection in SwaggerApp.prepare

- when upgrade from 1.2, now skip basePath part, everything after host
would be used as path.
refine code

remove SwaggerApp.__root_url
replace SwaggerApp.__url2obj with SwaggerApp.__url2app
remove SwaggerApp._prepare_url, instead, all input url would be refined
by utils.normalize_url
jr_split

decompose json-reference into (normalized-url, json-pointer)
many refinement

- add SwaggerApp.__app_cache to union multiple SwaggerApp with url
- add SwaggerApp.__url_load_hook to patch url to load json.
- 'getter' parameter in SwaggerApp.create is removed, if needy, call
SwaggerApp.load instead.
refine code to support implicit reference of JSON pointer
keep a strong reference of internally resolved SwaggerApp
complete external document

- all $ref are normalized to full JSON referenceall $ref are normalized
to full JSON reference
- separate scanners: Resolve, PatchObject into 2 runs to make sure the
order is expected.
refine

- return ('', '#') when input == '#' for jr_split
- refine get_swagger_version for partial swagger json