tabs->spaces
added file-header
fixed ip-check for proxy-requests, added tests