Added direct access redirection in framework files.
Reduced redundant initialization code, removed further 'CVS' occurrences. Made $admin accessible in page_content function.
Added the Id keyword into the top of each file that was missing it
Added the Id keyword for all files
Restructured frontend code and fixed various bugs