added permalink support and fullpage mode. next: fixRECHECK
TODO: hack server to return path, and use path for files
Asdasd