Initial commit

- Copied files from amcat.nlp
- Adjusted to work standalone with json input/output rather
  than with django models
- Added test cases