Detect if amber is really included as bower package.

Recent change has broken deployments of amber,
where it is not deployed as a bower component,
but are still deployed at different place from the page itself
(like from assets server).

This attempts to detect (via '/bower_components/' in path)
whether to use newly patched or old behaviour.
Merge branch 'detect-bower'