Modified API to send back resolved directory.
File picker works like a real file picker now.

Accepts a pattern to accept, is more sane about finding directories...
basically soup-to-nuts-done.
Setting the game factory in template.