Added an ANSI library file to aid in formatting strings.
Modified error.php to format the error message in a way appropriate for Terminal if the script originated from terminal