Some FFI tweaks

 - Move the ffi specific stuff to source/ffi
 - Rename lib/x to lib/x11
 - Change instances of "handle" to "ptr" in lib/ffi etc
 - Use `` strings instead of "" in the ffi codegen to get rid of a lot of escaping