Added support for parsing user agent xquery scripts.
Removed not needed code.
Changed the user-agent.xqm file.