Updated error handler, simplified code

Now fw.php is using totally custom error handling, no more ugly and
misleading exception throwing. Also created execute method to simplify
code.