Renamed public to httpdocs
Added dynamic content support
Removed global variable
Implemented dynamic content serving