Enhanced plugin loading for external plugins.

 New manifest.json features are:
 - startup and shutdown hooks
 - register mailboxes
 - pass config to mailbox parse_path
 - Added usage examples to demos plugin

 Necessary enhancements for external LEAP plugin.
Fixed tests in test_search.py.
Merge pull request #651 from codeburg/leap

 Enhanced plugin loading for external plugins.