Implement connect method

Make connect method.
This patch is related to https://github.com/jubatus/jubatus/issues/389