api-server template: add dot files

Add `.jshintrc` and `.jshintignore`, configure `npm test` to run
`jshint` before the tests.

Add `.gitignore` with the usual set of files that should be excluded
from git.

Add `.editorconfig` with some basic editor settings matching the coding
style used in the template.