[1.3.0] Beanstalk

  * use native functions for file/socket I/O;
  * fix #1612;
  * fix #1348;
  * optimize methods.