Refactor code.

- Rename some of the functions to more closely match stomp_<command>.

- Add header file containing the external functions defined so far and
  move some of the struct/enum/etc. over.