Remove extra structs

* No reason to wrap pointers with pointers.
* Get rid of megahal context with every type, just move it to the
  functions, it simplifies things greatly.