Adding support for SSL (not finished) and filters