Moved all rust code into src

That is, ioreg, platformtree and macro code.