Rewrote authentication to allow access at root site level. Site is currently broken due to many missing api/ paths