Update style attribute handling.

Clean user-supplied styles prior to sorting and re-formatting.
Add test cases for multiple levels of urldecodes.
Add test cases for restricted mode.