filetype-767587: Add a 'file' type

This builds on the fileparser module to add a file type. It also adds
tests and demo commands, etc.

Signed-off-by: Joe Walker <jwalker@mozilla.com>