updates to follow PSR-2 coding standard, update 3rd-party lib, etc
fix PHP warnings in router.php