Loading pages directly to browser and via ajax calls. Fixes #4. Fixes #5.