Setup entrypoints

Fixes #85. Needs review.
It's really cool though.