Added support for reference paths.
Added reference and selector flags to path
Added enum for identifying ports and nodes
Massive commit. Bad... Added comments and have begun implementing nodes