p1-common: move common stuff to common repo

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I96b158da9f8beafbc8b8951bb03b573329cbd055