Content provider: added adapter mechanism

implemented content provider as adapter.
added document adapter to get the object infos.
added more funcitons to underscore lib.
cleanup.