Split out the linking/unlinking code into a separate c++ file to reduce the eventual size of p_portalclip.cpp. Finished the linking/unlinking code.

git-svn-id: http://mancubus.net/svn/hosted/eternity/branches/portal-branch@2613 86ba831e-150c-0410-ab35-e06eaae15ed9