Core pr 3 (merge with Artesis)

This is largely a big merge with Artesis.

* Added new function ding_provider_get_pseudo_entity.
* Fixed of coding style.