Trying to get Travis-CI tests passing again.

Fix failing unit tests caused by mock/test apps not defining dependency_manager. Rework logic in stager:finish_job to reduce cyclomatic complexity. Exclude Galaxy test file from PEP-8 checks... since PEP-8 is not standard for Galaxy.