moved log.js
refactored logging
first version of cli
added data to template rendering