complete rewrite

new (functional) API using nano (and follow)
remove attachment support