added email manager module
add npm test script
fix tests for latest changes to hoodie-plugins-api