add Request::getAttributes() and test
Synced up with trunk, Merged in rev 187:190