updated git ignore
updated LICENSE
initial import of php code, partialy converted for php5.2