moved adding styles/scripts to layout file
error handling by case, unknown error handler
Invalid layout now raises jerror
removed custom errors, will rely on cms instead
code quality
Merge branch 'unstable'