Fix ClientRouter test

Broken by #195
Capture this for use in fetchFromApi error callback

When this file was modified for entryPath changes, this code path must not have been hit.
Guard against null getResponseHeader('content-type') in clientSync

From browser restrictions, jquery throwing a parseerror from malformed JSON, etc.
Merge pull request #201 from rcs/patch-1

Capture this for use in fetchFromApi error callback
Don't test 0.11 in Travis because of infra issues

Builds are always passing on 0.11. Travis says it is an issue with their
infrastructure and something they're working on.

It's not essential to test on an unstable Node version; when stable 0.12
is released, we should certainly add it.
Merge pull request #202 from rcs/patch-2

Guard against null getResponseHeader('content-type') in clientSync
Ignore more vim swap files
[example] Show how to update page title in controllers

To answer a frequently asked question.
Merge pull request #208 from airbnb/example/update-page-title

[example] Show how to update page title in controllers
Custom apiProxy server option

I have a situation where I don't need the apiProxy. Calls go directly
to an endpoint on the same server. This change seemed like the most
painless way of making that happen.

To get it working with no proxy and local api calls, I just need to do
the following.

1) Name the entries in dataAdapterConfig the version of the API "v1":
{...}

2) Override syncer.formatClientUrl in the Base Model/Collection to skip
adding the /-/ separator

3) Set config.apiProxy to noop

result is /api/v1/myresource -> app server = ok!

I could see the no-proxy being an option that does all of this.  It
prevents the middleware from hooking on and eliminates the addition of
the separator.
Pass `req` to `RestAdapter#apiDefaults()`

For more easy subclassing of `RestAdapter` to customize things like
headers and cookies based on `req` values.

See this comment for context:
https://github.com/airbnb/rendr/pull/119#issuecomment-29998801
Merge pull request #214 from modalstudios/apiproxy-options

Custom apiProxy server option
Made Rendr work with requirejs

commit f269976f3408ded628a8f85ac83deffe48be4c12
Author: Alex Indigo <iam@alexindigo.com>
Date:   Mon Dec 9 19:56:02 2013 -0800

    Attempt to fetch both models or collections.

commit a4ba3b2a997ae386ea7cd63cd9db758050814499
Merge: ca25b1f b405239
Author: Alex Indigo <iam@alexindigo.com>
Date:   Wed Dec 4 12:24:19 2013 -0800

    Merge pull request #3 from airbnb/alexindigo-master-merge

    Updates from master

commit b4052394b7f70a7d9ff57cd43cb12d9bdab89a39
Author: Spike Brehm <ocelot@gmail.com>
Date:   Wed Dec 4 12:13:43 2013 -0800

    Updates from master

commit ca25b1fe5ddd3c0d55b0deb17f6541ffe032474b
Author: Alex Indigo <iam@alexindigo.com>
Date:   Tue Dec 3 17:50:18 2013 -0800

    Unified getView() interface.

commit 27b3d61e9d06f671348f0aecba91a5e2811fe4f5
Author: Alex Indigo <iam@alexindigo.com>
Date:   Tue Dec 3 16:21:09 2013 -0800

    Another out-of-context-this left behind enemy lines.

commit d385c102949fb01e746479c0ff4a07c4bfc9ae9c
Author: Alex Indigo <iam@alexindigo.com>
Date:   Mon Dec 2 15:22:17 2013 -0800

    Cleaned up merge leftovers. Made entryPath check more inclusive.

commit 1d5ff49243f8a47c9a996b32eb1e94f62b93cd9a
Author: Alex Indigo <iam@alexindigo.com>
Date:   Wed Nov 27 21:20:55 2013 -0800

    Fixed styling.

commit 18572a2a6308d3ff12fe1954cf09d227e4f39011
Author: Alex Indigo <iam@alexindigo.com>
Date:   Wed Nov 27 19:30:13 2013 -0800

    Fixed tests.

commit 341606432d289d6218056a8d0769f0cbc5812206
Merge: 383a0df d50b31f
Author: Alex Indigo <iam@alexindigo.com>
Date:   Wed Nov 27 17:10:48 2013 -0800

    Merge branch 'refs/heads/requirejs-rebased'

    Conflicts:
    	.gitignore
    	client/router.js
    	examples/05_requirejs/Gruntfile.js
    	examples/05_requirejs/app/models/build.js
    	examples/05_requirejs/app/models/repo.js
    	examples/05_requirejs/app/models/user.js
    	examples/05_requirejs/public/js/app.js
    	shared/base/view.js
    	shared/fetcher.js
    	shared/modelUtils.js
    	shared/store/collection_store.js

commit d50b31f44dc9cc881f44034e8f2b51fcd0dcee5e
Merge: a44cf28 2030a3b
Author: Alex Indigo <iam@alexindigo.com>
Date:   Wed Nov 27 15:40:06 2013 -0800

    Merge branch 'master' of github.com:airbnb/rendr into requirejs-rebased

commit 383a0dfa290d9ac7cb552880d11f39b798f88537
Author: Alex Indigo <alex@airbender.local>
Date:   Wed Nov 27 15:21:59 2013 -0800

    Added globals.js placeholder to rendr-handlebars grunt script.

commit a44cf2832aff94ee13e0764610bc8c2405dfba33
Author: Spike Brehm <ocelot@gmail.com>
Date:   Wed Nov 27 15:08:42 2013 -0800

    Rebased against master

commit 4e7e7d3d9eed663a60cfb45b6da5d4b5a0241a85
Author: Alex Indigo <iam@alexindigo.com>
Date:   Tue Nov 12 22:56:47 2013 -0800

    Added rendr+requirejs example site.

commit 4dbbcb1c4813d48633bc7974c7926bc9b825f165
Author: Alex Indigo <iam@alexindigo.com>
Date:   Tue Nov 12 16:14:43 2013 -0800

    Another workaround for requirejs after-thought-conversion.

commit 335bef1364cf49102eb6075776d523ce764b0b56
Author: Alex Indigo <iam@alexindigo.com>
Date:   Thu Nov 7 19:52:51 2013 -0800

    Added comment.

commit 385a52923c05b380c6043e66a79ae8b74448d7d3
Author: Alex Indigo <iam@alexindigo.com>
Date:   Thu Nov 7 19:48:26 2013 -0800

    Dried stuff up.

commit 461e8f47a5352eee908a6cfb1346ddf16eab6414
Author: Alex Indigo <iam@alexindigo.com>
Date:   Thu Nov 7 18:38:43 2013 -0800

    Fixed typo.

commit 4275d78292ae81e4cb56993feb06cd3e9b830237
Author: Alex Indigo <iam@alexindigo.com>
Date:   Thu Nov 7 17:14:36 2013 -0800

    Made controller lazy load.

commit 9cd769aeb1784c2ecc570131db7b2cfd04360672
Author: Alex Indigo <iam@alexindigo.com>
Date:   Fri Nov 22 15:13:59 2013 -0800

    For some request we don't need JSON,
    keeping it by default, but adding ways to disable it.
    Useful for Oauth, which doesn't like JSON requests.

    PS. We need it now, but I'll clean it up and make as separate PR, when we will be merging RequireJS one.

commit a567ecea704820fee27bae8170944a9dfd3b3d23
Author: Alex Indigo <iam@alexindigo.com>
Date:   Fri Nov 22 15:12:08 2013 -0800

    FIxed Gruntfile after cleanup.

commit d85fb61fae932157293abf3247518455b7663578
Author: Alex Indigo <iam@alexindigo.com>
Date:   Wed Nov 20 16:51:55 2013 -0800

    Cleanup. Always call callback in view.hydrate. Thanx @bigethan

commit f8152426c8d39373eaa33eef8f5a5973c75c199c
Author: Alex Indigo <iam@alexindigo.com>
Date:   Tue Nov 19 15:34:16 2013 -0800

    Housecleaning.

commit f86cff3be6f44c446bf77d129dc3adb897a4a040
Author: Alex Indigo <iam@alexindigo.com>
Date:   Tue Nov 19 15:20:03 2013 -0800

    Cleanup.

commit c2ce265f3bb7a0af8f9eee35bffb7df4aeb4b3c4
Author: Alex Indigo <iam@alexindigo.com>
Date:   Sat Nov 16 01:57:18 2013 -0800

    Updated Rendr to load and preload views, models and collections async.

commit 660abf9ff06ae3a14eb95882e575921e7cbc39b7
Author: Alex Indigo <iam@alexindigo.com>
Date:   Tue Nov 12 22:56:47 2013 -0800

    Added rendr+requirejs example site.

commit 53f58e1dbfd3a40ef8fce4ca090981cba4f4d84c
Author: Alex Indigo <iam@alexindigo.com>
Date:   Tue Nov 12 16:14:43 2013 -0800

    Another workaround for requirejs after-thought-conversion.

commit 26543245e097d89b61415d17dcb979bb3fab46dc
Author: Alex Indigo <iam@alexindigo.com>
Date:   Thu Nov 7 19:52:51 2013 -0800

    Added comment.

commit f1827bbc4bb1c97b06c439fae505ec6664747363
Author: Alex Indigo <iam@alexindigo.com>
Date:   Thu Nov 7 19:48:26 2013 -0800

    Dried stuff up.

commit 129cd445cb077b069373d0a997d21a28f480b8a4
Author: Alex Indigo <iam@alexindigo.com>
Date:   Thu Nov 7 18:38:43 2013 -0800

    Fixed typo.

commit 41b4c705b0cec277e71b1aec5126baf819d5a8cc
Author: Alex Indigo <iam@alexindigo.com>
Date:   Thu Nov 7 17:14:36 2013 -0800

    Made controller lazy load.