refactor get_filenode_metadata(...) into common.py
Begin sketching a test suite for our refactored code.