Move hooks and scripts to extensions.json Bug: T282783 Change-Id: Id63d17d04789bb36fff35e0512e7878dc8bfe12c