Fix asset delivery for vendor namespaced plugins.

Search up to two directories for plugin names as people will often use
vendor namespaced plugins and AssetFilter should handle that scenario.

Fixes #4616
Remove dead code and prevent notices.
Fix failing test.
Merge pull request #4634 from cakephp/issue-4616

Fix asset delivery for vendor namespaced plugins.