Restructure rexml library

Divide rexml into some sublibraries
Update rexml: minor fixes