Lots of new stuff & various bugfixes

- Add KernPCB balance
- Add virtual function device (This allows applying a linear function to
	a measurement result, e.g. for transforming voltage to temperature
	output)
- Enable logging to file
- Various bugfixes