Fixed: Allow users to create files (read/write) within directory.
Fixed : Disallowed user to open a texteditor without a write perm.
Added base_dir param to limit the access
Added base_dir param to limit the access
Merge pull request #13 from pcoder/master

Fixes to three issues