Updated package.json with `main` and `files` props.

@dcneiner looks like my .editorconfig file had gotten blown away at some point. It's back now, hence the trailing whitespace removals. Normally I'd include those in a separate commit, but this shouldn't happen again in the future.