Improve error handling and reporting

- Use console.error when errors happen	
- Improve error handling in user script execution
- Better (syntax) error reporting for user scripts (and context separation)