provision/docker: support for pty width and height in shell method

Related to #903.
provision/docker: ask for size of the terminal and send to the server

Closes #903.