Mainly refactorings.

Fixed bug in rlwimi.
Changed kernel from dynamically loade .dll to statically loaded .lib files.
Destroyed bits:: and replaced with several classes.