Refactoring types into files.

Put NullTime type in time.go, so that it can be easier for navigating code.