Extract url-generation to actor classes.
Add unit-test for label generation and refactor label generation.
Remove dead code & Pep8.