Posted utils.php

Consolidated loose php utility functions used in various projects into single open-licensed file.