Handle manifest rewriting using a new script.
Move deployment script to Makefile.