Adds a base class for libraries with some utility functions in PHP, and a Lua library with utility functions for use from Lua. Change-Id: I3d67b1de8bc50488fe3a722e4e2de5849285d127