Made resources.py:deserialize respect the format argument

Hi
the deserialize function in resources.py did not respect the format argument.
I am not clear why this is so. I found the need to set it manually when handling multipart POSTs, so I changed it
I ran the tests and all passed OK.