Remove most instances of 'using namespace std'
Move most things into namespaces.
Bring Rex in line with the rest. Hopefully I didn't also break it.
Add sgf save/load to hex,rex,y,pentago