Moved read/write button to the message bar.
Fixed a few bugs.
Merge pull request #8 from pcoder/master

Moved the read/write permissions to be asked in a more natural way.