aio: move loop to the end, make it an aio_loop object

and add mode globals: aio_run modes, aio_version, aio_version_string