Add a template for the lib/* sub-scripts and a description to HACKING. Change-Id: Ia490de8e565982c517525e09d8941a847ba530aa