Add metadata.json to mochitest app

also extended permissions for read/write to sd card