Refactor param parse code, add projectfilereader support for osl classes.
Improved tests, formatting fixes and bug fixes.