Reimplement debian interfaces file parsing

The state handling in the parsing method was growing too complex. To
resolve this some of the state was extracted into a class.