Remove dead code
There is some code that is deprecated and can safely be removed, such as:
master/slave functions and tests
duplicate code (e.g., validation.py)
ICAP support