Port configurability

Made component port dependency injected
Edited the resource tests and component test to include port
Config work
Start fleshing out graph factory