Refactor module registration

Refactor module registration so that it doesn't need to separately
track properties.

Test: builds, no change to out/soong/build.ninja
Change-Id: I66ef76e0c37402d71005c18fefc09061e931ebfb
2 files changed