Created module_result_history_of endpoint and refactored model method.

Signed off by: Renan Fichberg <rfichberg@gmail.com>