File type and hex viewer

Identify a file from its first bytes and view it as hex.