Add PHP functionality to site.

Added PHP functionality.
Sorted a whole mess.
Sorted files.