Basic API functionality.
More API work.
Rearrange API directories a little.