Corrected $context and log all exceptions for the DocParser.
Only add "Swagger" use statements to the DocParser->imports()
Skip swagger-php/tests and vendor/doctrine folders

(unless the discovery starts inside those folders).

Prevents models and resources from the swagger-php unittests to appear in user-projects
Prevents notices caused by doctrine unittests