Fixes #5000, generate labels client side.

http://projects.theforeman.org/issues/5000