track.url website detection + fix redir bbk

+ add tools.py for non db-related methods