Extract common parts of blackoil and incomp. state

Put the identical parts of the simulator state into a base class that
they can be referenced from when adressing the common fields.
Merge pull request #420 from rolk/420_state

Refactor BlackoilState and TwophaseState to have a common interface for writing