grouped methods together.
Added better relative URL resolving. 
Check working directory as well to resolve URLs against.