fix api calls
handle null values
fix entity explorer, support mref values
Merge pull request #679 from dennishendriksen/master

Fix entity explorer, support mref values