Introducing filesystem abstraction, fixed escaping of single quotes in strings, improved closure support