clean up

declare node_moduleDir once. add missing stat var declaration.

Jira-issue: WP-1002
Remove API test pages API that are not available.

When an API module is removed we now remove the test pages for that API.

Jira-issue: WP-1002
bump version to 0.8.2
Merge pull request #5 from aldafu/WP-1002-remove-testpages

Wp 1002 remove testpages