Added UIOscillator class

Various code improvements.
Representation of an oscillator in the UI is now done in a separate
class.