Create module for ahat, fix API checking am: bdc6241921
am: 24a5e5748f

Change-Id: I4457e53e70549394cca34ea32f39c3d040568fd1