XML Templates

Make classes XML serializable
Add XML export tool to dump class templates
Add Base templates