- made the $query parameter optional everywhere
- basic queries seem to work now
- fixed classname of Node Model in core plugin