outsourced get_xsi_type to salt.util.py
refactored imports; refactored get_layer_id() to get_layer_ids()
refactored SaltElement. init builds from primitives; from_etree builds from etree element