Change generaldefinitions into common

In preparation to add binary datatable save/load functions and remove
some of the clutter in datatable.cpp