Almost Periodic Functions on the Quantum Time Scale and Applications