add Makefile for package extension automatically and update chrome and firefox to 0.3.1.2