Pull apart libytcd in preperation for making the GFC work

make libytcd just what is needed to run a server or a client
pull all common functions into libytc
add apiport and network port and a rough spec for how they should
talk to the server