feat(server): add deployd.attach to extend http/expressjs/connect server and provide a middleware

copy functions from server.js

code cleaning and following the styles

Test: add unit test for deployd.attach
feat(collection): $addUnique for MongoDB $addToSet support (from yoneal PR #252)

- $addUnique or MongoDB $addToSet support
- Added more tests for $addUnique
- normalize  value to Array before calling _.union()
Docs: Update version, download link and add mirror for Docs
Refactor: Remove deploy/remote command and logic
feat(config-loader server): customize server and public dirs through options
fix(session): correct usages of an emit queue.

In fact, it's just a typo.
Chore: Update qs dependency

See https://nodesecurity.io/advisories/qs_dos_extended_event_loop_blocking
test(collection): fix broken collection test

This test was trying to test for the existence of a POSTed row before it had
actually been POSTed. The POSTs were also failing due to some missing required
fields. I have ensured that the assertion occurs after the POST and that the
POST contains all the required fields.
test(server): Correct sanitization test logic

This test used to read: "should sanitize the owner due to incorrect type," but
this is no longer how the query logic actually works. The query is currently
designed to coerce numeric arguments to strings when the underlying field being
queried on is a string, so this test (which used to ensure that the field
shouldn't be found) is no longer valid. Instead, I changed it to test that the
field is found despite the fact that it is queried for using a number instead
of a string.
bump version
Merge pull request #430 from ericfong/bump_verion

chore: bump version to 0.7.1
Revert "chore: bump version to 0.7.1"
Merge pull request #431 from deployd/revert-430-bump_verion

Revert "chore: bump version to 0.7.1"
chore: bump version to v0.8.1-rc.1
UserCollection: make password-hashing monkey-patch-able
Chore: update dependencies

- sinon -> 1.12.1 unit & integration test pass
- dox: removed unit & integration test pass
- semver: -> 4.1.0: unit & integration test pass
- qs -> 2.3.3: unit & integration test pass
- opener -> 1.4.0: unit & integration test pass
- tar removed: unit & integration test pass
- grunt-contrib-less -> 0.12.0: unit & integration test pass
Docs: Add rebase instructions for maintainers
Chore: npm version and link to docs

- added a badge to display npm version
- remove temporary link to the docs
style(db): improve error messages when mongod is not available

docs(db): add authenticate fail code

throw err so that test can pass
Merge commit 'd727f8ef0b9ad159a599fc21cddc4d73d8f27aa0' into 0.7.0-concepta

Conflicts:
	README.md
	package.json