Uploader fix

When no file type can be determined, fail explicitly (instead of
letting a null reference exception arise).
Pattern and TypeDescriptors
Rewrite DescribeTimeSpan; move Functions.cs
Further improve Pattern classes
Begin Import rewrite