Refactor fvp config and gic code

Refactor the FVP Config and GIC code so that it is more re-usable by other platform ports.