1) Added support of custom resources in wait precondition and context processor
2) Added tests
3) Class/package arrangement