WFLY-1594 - Initial pass at logout functionality.

Initial logout rework.