Partial conversion to custom namespace

Still problems with stuPanTilt namespace use breaking things.