Switch to kernel code style, refactor packager.c to package.c and move api to sio-packager.c