.htaccess and URL re-writes part one

.htaccess creation and URL re-writing functions. Added the site table
with a field to determine the link format. Part 2 will add management
options to alter data in this table.