Move "foundations.common.isBinaryFile" definition into "foundations.io" module.

Closes #24.