added logout to the pages and stop streaming when leaving the index page to reduce database inserts
Merge remote-tracking branch 'origin/master'
description