added to_hash method to DeskResource; moved _embedded and _links resources out of definition