Extended application to allow starting the application from standalone, not just the CL
Added check for site collection administrator and term store administrator
Added minor comment