Initial base support for plugins.

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