Make commands remember last used session

Closes #20.