Filemeta json v11

Filestore/Filelog metadata output to JSON.

Worked on feedback given after a review from Victor. Hope all issues were addressed.
these CHECK_PROTO_* defines look like they aren't being used