Converted some SCIM stuff from the ox.gluu.org wiki