Clear file chooser filter string

Now that we re-use the window we need to manually clear the filter string (from last use).
Opening folders is added to recent menu

This behavior was lost while reworking the document window class, closes #701.
Our divider line view can now handle secondary color

This is used when the window is not main (if provided).
Added ability to set default type to use for unknown documents.
Make file extension filtering more intelligent

Previously, the extension matching regex only matched one extension.
Now we match all of the extensions.

Searching for an extension previously would only show files with that exact
extension. Now, when you search, it will perform a substring match.

This means that if a file has multiple extensions (e.g. .html.erb), searching
for just one of them will yield a match, and if you include both extensions only
those files with both extensions will match.

This is better for rails projects especially since they use multiple extensions
for their assets and views (e.g. .js.coffee, .css.scss).

A search for:

name.html will match:
name.html.erb
name.html

name.erb will match
name.html.erb
name.erb

name.html.erb will match:
name.html.erb
name.erb.html

This patch is public domain.