add socket and file_get_contents support for minisite

Signed-off-by: TomWu <phperwuhan@gmail.com>