Documenting all local/lib.php methods

Bug 1314012

Change-Id: I5e19266e8379fa1244cafafa147e20b7a23a0895