Implementing and testing filemanager and upgrading epanet_output library to use it.
Added unit test for errormanager and refactored to simplify use of error_check() method.