Add unit test for the #125 scenario. Reattach after client disconnect on stdin allocated container
Store the master ptys in order to close them when the process dies (#228)
Fix a scope issue preventing the close of slave stdin pty (#228)
Close the containers stdin when the process dies
Make sure to close all pipes when detaching client (#228)
Add debug infos in CmdInfo to know the amount of fds and goroutines in use
Merge remote-tracking branch 'origin/125-reattach_attached_run_command-fix'
Show shorthand container IDs for convenience. Shorthand IDs (or any non-conflicting prefix) can be used to lookup containers
Bumped version to 0.1.1
Revert regression introduced in 81eac415ad03d93596a0d8da92bdccd9ecd4ee63, which caused 'docker run -i' to never close stdin
Add a check to avoid double start (resulting in dockerd to panic) and unit test for it
Make IP allocator lazy

Instead of allocating all possible IPs in advance, generate them as
needed.

A loop will cycle through all possible IPs in sequential order,
allocating them as needed and marking them as in use. Once the loop
exhausts all IPs, it will wrap back to the beginning. IPs that are
already in use will be skipped. When an IP is released, it will be
cleared and be available for allocation again.

Two decisions went into this design:

1) Minimize memory footprint by only allocating IPs that are actually
in use

2) Minimize reuse of released IP addresses to avoid sending traffic to
the wrong containers

As a side effect, the functions for IP/Mask<->int conversion have been
rewritten to never be able to fail in order to reduce the amount of
error returns.

Fixes gh-231