Fix infinite recursion bug
The kernel was getting added to the scheduler. Thus when it called the
scheduler, the scheduler called it, and so on.
Change the current thread when resuming the coroutine
Add the files field to thread
Merge in stuff from the rewrite
Fix the filesystem test and remove the old permissions system
Change style, fix the comment and fix the syntax
Move generic utility functions out of peak-fs/util and rename it to path-utils