Added debug code for posting back scanner settings

May have to JSON encode settings client side and diff with defaults

Also added type parameter for ruleset generator