SI-4714 Initialize history while initializing the REPL's reader

It was possible to get a command into the REPL before the history
recording object was set and so the command would be lost in the sands
of time. This fix just moves the initialization of the history object
into the JLineReader constructor, out of the post-init hook.
Merge pull request #2046 from JamesIry/2.10.x_SI-4714

SI-4714 Initialize history while initializing the REPL's reader