Add more generic packaging script, supporting flexbridge

Also some modifications to begin supporting different pbuilder roots.

Change-Id: Icaef9125f4ef6f7cd195cbce54f70286907e1cd3