[Reviewer: Matt] Make body() and method() memoised functions for easy mocking

Fixes https://github.com/Metaswitch/homestead/issues/59