Init code for slim_app