Extension to Laravel 4 framework for creating single-page apps