Smartdown evaluation engine

Also added a command line script in `bin/smartdown` which can evaluate smartdown.