add callbacks to weasel.repl/connect, closes #4