Huge refactor - Slim framework integration