Quite some refactoring of the front facing objects

which now should have methods that are called with either some entity or the respective id. The internal classes work only with const string &id. Only exceptions are the EntityWithSource and EntityWithMetadata which still work with the entities.
Please review this request, if this is what we want....