Save users with custom fields attached

Implemented a generic method for attaching custom fields (as described in http://www.redmine.org/projects/redmine/wiki/Rest_api#Working-with-custom-fields) but only implemented and tested it for the User api - but it should be easy to use it in all the other fields as well.