more metadata options
fix pep8
fix test output
separate encoding check, add packages
Merge pull request #153 from iblazevic/metadata_fixes

more metadata options
add metadata authentication and new test example
Merge branch 'master' into metadata_auth