Add support for pty allocation before executing a command.

Signed-off-by: René Köcher <shirk@bitspin.org>
Add usage sample for pty allocation code.
Merge pull request #9 from Shirk/master

Add support for pty allocation before executing commands.