Add base stuff for testing resources.
Test index as uri list from index resource.
Move db test case in build tools module.
Factored out resource test class.
Introduce testing stage.
Add stage env var to unittests.
Introduce annotation for servlet listeners in resource tests.
Unignore test.