Initial work on Qt5 compatibility.

- Tests pass on Linux, except some of the ByteArrayHelpers, which were put in
  place to detect QByteArray internal behavior changes (and such changes
  happened in Qt5).
Ported to Qt4.7 and Qt5 (QDeclarative compile error)
Merged Qt5 build support