more work on refactoring tracker.

The tracker class is now down to 300 lines even though it still contains
things that do not belong there such as test stuff etc. I got rid of
many weird if statements that actually meant something else. eg
`if isAuthenticated` actually meant in case of bulk requests (log import)
... It looks a bit over engineered right now but it is much more testable
now etc. Trying to make methods public where it makes sense by moving them
to the correct classes. Nothing works right now though ^^ Will try to
simplify later again where possible