break up reference-arch source into modular files

Change-Id: I5b4458ec3e90f0974a7e070cdc9739727e7b8cc9