Templates

* Moved getFieldNames from Template to Templates\Remote
* updated unit tests accordingly
Misc

* cleaned "use" namespace statements from unused classes
* Updated comments to reflect the changes of exception classes