added logout function
Merge pull request #120 from red-admirals-2014/logout

added logout function