Revert "Initial port of gpu.cpp - not working yet - if proves too bothersome - revert"

This reverts commit cf957a454e020e47816b2dce9e383e10991aa9f1.