Simplified method.
Avoid double memory allocation when result is stream.
Add permission model, change store security info to json format, remove metadata from bucket.
Fix test.
Merge branch 'hotfix/fix_code_issues' into develop