Add file-based configuration.

Closes #5.
Ignore config.js.