Simple API handler for Laravel 3