Changed the QMLServer to a singleton class. Added a nice example.