app: Introduce some routines to help with application startup