Fix the relation between FileDetail and FileGroup via the junction table
pep8 clean up in the model and the internal API
pep8 clean up in the pid library
pep8 clean up in the sync library