Complete rewrite.

Use skiplist.
Different interface to resources.
Start of fschangenotify.
Start of the modules overlay and virtual.