Main application skeleton