Move index file to public dir, reduce cyclomatic complexity of front controller, add more verbose logging