Project #1099.
Changes:
- Moved inline css to stylesheet
- Fixed Ajax
- Removed old functions
- Added html markers for mainfraime.