Moving parsing of the current file back to client

It was an attempt to fix a crash, for which there's a better solution now
Fixing crashes, adding support for standalone files

Crashes were due to concurrent reads from the same translation unit.