Add option to load the main package into the REPL

Sometimes it is desirable to load the main package into the REPL to experiment with it.

However, this behavior should be configurable because the main module can be half-baked and not working yet.

This patch introduces `--load-main` command line option in a very simplistic manner (I don't know whether a mature option parsing is needed here).