Use less global state

Seemed to work pretty well for libreadline, but it's 2014 and I have
opinions about how software should be made and consumed. There's almost
no reason for global shared state anymore.