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: I63931fdd2bf7b6e70da8a88b5f97618072c1569d
2 files changed