removed a magic constant
fixed bug when calculating width of terminal
use JSON wrapper to save Dropbox auth token
refactored grid formatter