php cleanups and build scripts

Hi Bruce,
It's been a while, but I'm still playing with openhr20. I didn't start to write the tutorial yet (but I'm still going to), but meanwhile I've cleaned up some 'deprecated functions' warnings in php and wrote simple scripts for repeatable compiling and flashing. Check them and include in your repo if you think that they are usefull.