More spring cleaning, simplification
For convenience (to prevent code duplication) it's better to have an
element knows which type it is.
Bug fixing XML metastore, adding setElementType() on IMetaStoreElement
Small bug fixes
Added Javadoc, made BaseMetaStore abstract and implements IMetaStore