Initial base support for plugins.

They don't work since they use kernel funcs, though.
Move some sceIo kernel calls over so they work.