Fixed some io stuff.
Updated endianess handling.
Added functionality to vertex list and vertex writer
Fixed so ResourceLoader correctly can "load" null product.

Also fixed TextureManager linking.
Added class MeshIO.

MeshIO handles writing and reading meshes from input source.
Also updated test case.
Fixed TextureManager and Primitive enum.
Updated SurfaceException to use PM_MAKE_EXCEPTION_CLASS.