Error.json creation, directory alterations

Laying framework for error response by the plugin.

Moved everything to 'public' dir instead of 'static' dir.