Remove warnings: ERT-115

This PR drastically removes the number of warnings when compiling ert. Most of the changes are trivial:

- Remove unused variables & functions.
- const correctness
- Explicit initialisation of variables - which are /seemingly/ used unitialized due to util_abort().

Some warnings left due to hash const problems.