Implement ihex_rs_free()

This branch basically reuses the code in mock_recordset_free() with some modifications and exposes it as a new public API function ihex_rs_free().

Possibly fixes #13. The name is just a suggestion and regression test cases for the new API would be great, but I have no experience writing them.