attach support

Add support for attach (hijack proxy)

It's kinda hard to to test, but it seems to be work fine.

Fix #194
Related to #177


@vincentwoo @avaer and @abronan please take a look.