Sort endpoints by letter.

Merged from swagger-ui's index.html.

Previously, endpoints were sorted in the order they were defined.
Merge pull request #55 from STRML/sortEndpoints

Sort endpoints by letter.
swagger: allow cross-origin requests

Add CORS middleware to the swagger app.

Add a configuration option allowing developers to disable CORS.
Merge pull request #53 from strongloop/feature/add-cors

swagger: allow cross-origin requests
1.3.0
Merge branch 'release/1.3.0' into production
Merge tag 'v1.3.0'

1.3.0
Pull model description from ctor.settings first
route-helper: include `notes` and `deprecated`
Extend `consumes` and `produces` metadata

 - Include XML content-types for both input and output
 - Include JSONP (javascript) content-types for output
Use `1.0.0` as the default app version.

Change the default version number returned when the version number
cannot be read from `package.json` in CWD.
Merge pull request #58 from strongloop/godaddy-improvements-1

Godaddy improvements - round 1
Support multi-line array `description` and `notes`

When a string value is expected and the user supplied an array,
convert the value to a single string by joining all array items.
Merge pull request #59 from strongloop/feature/support-array-descriptions

Support multi-line array `description` and `notes`
gitignore: add .idea, *.tgz, *.iml
package: update devDependencies

 - loopback 1.x to ^2.4.1
 - mocha ~1.20.1 to ^1.21.5
 - supertest ~0.13.0 to ~0.14.0
Merge pull request #62 from strongloop/run-tests-agains-loopback-2x

package: update devDependencies
Add support for `context` and `res` param types
Move `convertText` to `typeConverter`

Create a new module `lib/type-converter.js`.

Move `routeHelper.convertText` to this new module.
Refactor conversion of data types

Refactor the way how loopback types are converted to swagger data types.

 - `modelHelper.LDLPropToSwaggerDataType` is responsible for
   producing a valid Swagger Data Type object from LDL object
   (be it a property, accepts item or returns item).

 - LDLPropToSwaggerDataType picks only fields that are part
   of the swagger spec, everything else is excluded from the result.
   It's up to the caller to add extra fields like `description`.

 - refactor `routeHelper.extendWithType` to accept an additional arg:
   the original LDL object. This way it's possible to copy all
   type-specific fields to the output object and don't add anything
   else.