[1.0][WebResolver] Use baseUrl and port while generating image path.

This PR was based on https://github.com/liip/LiipImagineBundle/pull/353 with some additions and tests. 

It has to fix https://github.com/liip/LiipImagineBundle/issues/361, https://github.com/liip/LiipImagineBundle/issues/360, https://github.com/liip/LiipImagineBundle/issues/352, https://github.com/liip/LiipImagineBundle/issues/349