[AESH-42]
made getParameters public
[AESH-45]
make sure we have no nullpointers
added TerminalSize
[AESH-25]
added a Prompt object that can handle prompt with ansi codes.
note that this changes the api for console.