add timestring_to_datetime on tiddler.model

It's something that needs to happen often but wasn't centralized
anywhere. Now it is.

Added tests for it, plus more explicit tests for the other module
level functions.

Adjusted code in web.util to use this new code.