Bug 1064646 - Collect static assets and rebuild pyx files before deploy

(see bug)
Would placing the contents of the ``rebuild()`` function in ``update_code()`` function as the last step in the ``with ctx.lcd(th_service_src):`` block be a bit safer? That way anytime the ``treeherder-service`` code is updated the build would occur before rsync pushes out the changes.