Initial commit.

So far I've got the OSX AP working ok. Nothing to report on Windows or Linux.