begin work on gh-pages

lots of reorganizing
add a check for uncommitted changes
remove some parts that don't need to use promises (they're synchronous)
closes #21 (even though this commit is totally broken, it adds it to the
code)