Add unit test.
Add event counter.
Optimize unique name manager.

State is not managed implicite by nextEvent method. Number of events is
given by instantiation.
Test updates.
Grammar update to reuse more code from jena impel.
Clean up.
Name manager update.
Updates.
Clean up.
Merge branch 'feature/member' into develop