fix redirect bug.

a trailing slash should be added to avoid addtional redirect.
add debug level logging for api blueprint
add makefile for common tasks
cdn_url_for defaults refine