Tons of changes.

Rearranged output files; Rex files now live in a rex/ folder off of the
root.