Moved the primitive out to its own file; fixed prim on Linux
Adding prim for detecting HubNet port