Move to Qt5, add time-sync framework