Merge branch 'release/0.2.1' into develop
Bumped to 0.2.2-dev
Upgraded express to 3.2.0
Added test to check if revision gets reset to a number if it's not a number
Fixed npm unpublish --> 409
Refactored settings and test cases

Settings are stored in their own object now and not in "app" anymore.
Refactored all tests to go straight to the module functions instead of finding the calls in the server
Added query for just local packages
Updating package meta attachment URLs on host/port changes.
Fixed settings-test
Fixed registrypath env variable
The _local flag is not necessarily set on an old package meta, so just checking _proxied
Removed superfluous newline character from express logging
Bumped version number to 0.3.0 because of refactored settings API
Merge branch 'release/0.3.0' into develop
Bumped to 0.3.1-dev
Adapted refresh to new settings and added unit test for it
Bumped version to 0.3.1
Merge branch 'release/0.3.1'

Conflicts:
	package.json
	test/pkg-test.js