Move all time functions to c++
Fix clearbtn on Mainpage, +some cleanup
Add stop-lookup to c++