Used resource-managing types for our C stuff
Broke lots of method definitions into .cpp files, added a forward declaration header