Using Leiningen

Moved everything into a Leiningen structure and wrote a test.