Support history file permission when persisting history commands into file

Bugzilla reference: https://bugzilla.redhat.com/show_bug.cgi?id=1126687
Jira Link: https://issues.jboss.org/browse/WFCORE-120

Wildfly cli will persist history commands into history file if it is enabled, however, the history file permission is not set, it will be possibly persists any sensitive commands, so it would be better the history file permission is more strictly set. Since the 'history' feature is provided by aesh, I think we need add this support in aesh first?