First prototype implementation of SmartMix support

Implemented SmartMix::resolveUrl().
Fixed some Perl::Critic errors.