Move marker tests and start test modules
Move marker tests into component test modules
Refactor code to not use complex list comprehensions
Move identity specific exceptions to identity module

Add test of invalid group id
Remove unused code from Marker
Add test for full coverage of encode_callbacks