Heavily refactored the XML Manager

Removed duplicated code and made the inclusion of new assets only
require 1 line of code.