added weak dependencies, require.resolveWeak

#526
1.4.7
Merge pull request #533 from christian-raedel/master

Add require NodeTemplatePlugin.