[WIP] Support for logout options

@steved555 thoughts? 

whitespace at the end