Modularize code, divide into Rundoc and Metropolis

Metropolis is the main library responsible for code execution, while
Rundoc interfaces with Pandoc documents.