Compress source for permalink

Use lz-string (http://pieroxy.net/blog/pages/lz-string/index.html) to
compress source code for permalink usage.