Updated sample to use OOP approach and better known style of creating a web app. When doing this, also added variables to minibase app config. Better approach.