chore(composer): Added validation of composer.json and necessary fields to pass validation

Made as followup of https://github.com/Elgg/Elgg/pull/6853