Made all api and app classes independent of Qt's signal/slot system by
using a simple observer pattern.