abstracting process to build any browserid package