Improve error handling, tweak node logic

- Charset=UTF8 now used in all API functions
- Errors in API calls now return empty objects, not arrays
- Node function now uses user session IDs
Move filters into frontend filters.js import