Fixed optional redirect, Changed SocketListener system

Version API 1.1.2