fix adding the objectID to irods

fixes:
- save the objectid as hex, otherwise irods does not accept it
- fix the set_user_metadata function from typos and wrong arguments
- update the tests to give out random objectIDs
  had to copy paste the objectid creation function to test_common,
  as importing from cdmi.py fails, because other imported modules
  call functions that rely on a flask context