Refactored mdt_req_init(), mdt_req_destroy() & mdt_set_state_actions() into functions.

Macros are uuuuuugggly.