Migrate to use subprojects.

Previously all Candlepin server source was under ${project_root}/src.

To look up the entire history of a file, the --follow option works for
both tig and git log.
Refactor buildfile to work with subprojects.

Additionally, move most custom functionality out into
plugins.
Correct scripts.