Major rewrite for php 5.3

Understanding that you might not want to pull this for backwards compliance reasons.

Since php 5.2 has been unsupported since 6. Jan 2011 maybe now would be as good a time as any to switch to php 5.3 ready code with namespace support.

/Joe