Code reuse

Commonly used scripts has been moved into include.php, and it has been
included in all front end files.