Exhibit 4 RIGHTS AGREEMENT by and between ACTIVE POWER, INC.