Handful of improvements (robustness and features)

This builds upon @piranna's contributions, it adds :
- sub SVG rendering
- https support
- support local absolute paths (and robust parsing)
- prevents some variables from leaking to global scope