Moved header function inside connection object
Export all classes defined inside request.js
Improve js -> xml conversion