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: Ifae616f68ba579acb285e0e63fc51ffc8d6eef0b
1 file changed