Add cgi script + front end to use it, also clean perl files