Add `.gitignore` and `.npmignore`

Description

(.git|.npm)ignore are basically the same in all our projects. These could be added by this project/package upon installation automatically.

Explanation

This would ensure consistency and make it unnecessary to copy and paste these files around from project to project.

cc: @jovankrunic @anselmstordeur