clean up typeFilter
Merge pull request #49 from cvan/type-cleanup

clean up typeFilter, fix lowercased external URLs