Security checks (key value for user) and history feature
CustomEvent shim for Safari
few little fixes