clean up, friend page finished

I have cleaned up the entire code structure for our convinient,
for example add header.php and footer.php to load common css and js
libraires. I have almost completed the friend page, still working on how
to store the data to the data base.