Ported AvogadroLibs over to Qt 5

Still remaining are verification of all features, packaging, and
the client-server code.

Change-Id: Ie9265ef7354ad3c1a0fac65482b4ff4e83f09874
Some minor fixes for input generation

Fixed the signal/slot prototype, and used the QTextDocument
constructor for the copy constructor as the other was triggering a
crash for the null parent.

Change-Id: I70b445225b8c96bc084708774d5f05474e57d36d
Merge branch 'qt5'

Change-Id: I0ba10544ecbe3e7ff3c0b319025ef7dc2775bb88