Moved common:: to math:: and other cosmetics

Moved contents of common:: namespace to math:: [it was all matrix
computations anyway]. Modified a few other namespaces and headers to
reflect conventions. libcorsairs and TestImage built in Visual Studio.