Defer Readline load as long as possible (fix #1081, #1095)

I haven't tested some parts of this yet, but it fixes my test case for rails/spring#244. I'd like to get this out in a 0.9 release so that pry-rails can be compatible with Spring. We can come up with a nicer version for master.