Increase RTC/getTime reliability by ensuring overflow can't happen
Added Math.min/max
fix compile
properly fix compile, and actually *do* compile travis for olimex now