Code cleanup

Clean up of code in pages and restriction of directory access using an
index.html file in all directories