set up internal routing, started building logon etc.
added missing files