No global $app uses anymore

* obsolete code removal
* lowlevelError() became LowlevelException()
* no more `global $app` references in methods