Part 2: Adding authentication filtering for REST calls and the general layout for main and side menus.