Support history file permission when persisting history commands into file
Fix license and checkstyle
Merge pull request #128 from gaol/history_file_permission

Support history file permission when persisting history commands into file