Refactor/cleanup #649 psd filelookup issue

Some cleaning up for develop of bugfix #649.

Split a multi class and protocol file into separate files.
Constant added for the intermediate lookup filenames, put into MiscConstants.