Refactored defrest macro

Needs more work. Had to change the test prerequisites due to different
chef-rest arity