JS Enhancements

Remove unused function isPropertyDefined
Curry function getValueForKey for more flexible use
Use string formatter
Refactor validation error handling

Add support to inlineEditForm for displaying global errors
Remove alternate way of globally catching ValidationErrors to make the
site more consistent.
Create consistent schema for error messages and warn when a view does
not comply.
Merge pull request #1747 from steventlamb/topic/refactor_error_handling

Topic/refactor error handling