getCurrentUrl corrected
todos finished, few left
generateToken possible memory leak fixed