adding method to insert header and footer on the app pages
Added a new more generic authentication infrastructure