Encode spaces as %20 in setAttribute requests to allow attributes with spaces in their names
Cosmetic update, changing names of functions as well as related docs, tests, etc. Remove some unnecessary functions and code...