Have HashArray dirive directly from ArrayObject so there is no dependency on MW

Change-Id: Iee7877fdc04653475a5eaae3e15569f6b5e8a004
Added non-mw autoloading support for Wikibase Database component

Change-Id: Ibbb1e000e97e7b3a82a78f9b33e5067a6fc8bdcf