Move command-line handling code to lib/
Make jshint pass again
Add changelog
Version 0.3.0