Rewrite the whole thing.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Improve binaries.
Remove example files.
Add packaging stuff.