Factored out readline related code to readline_environment
Output a newline at termination
Add empty metadebugger shell and mdb pragma