Add test_expensive target to the main Makefile

Now 'make test' will run the go tests with option -test.short
and the sharness tests without any option.

And 'make test_expensive' will run the go tests without any
option and the sharness tests with option TEST_EXPENSIVE=1.

This should help fix the first part of issue #283.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Remove dot and slash before files in cmd/ipfs/.gitignore

It looks like files are not ignored when they are listed
starting with ./ in a .gitignore file.

At least this is true for me on Linux for the "ipfs"
binary in "cmd/ipfs/.gitignore".

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Merge pull request #375 from chriscool/fix_dot_gitignore

Remove dot and slash before files in cmd/ipfs/.gitignore
Hotfix: return parsed options if argument parsing failed
Merge pull request #378 from dborzov/fix/nil-options

Hotfix: return parsed options if argument parsing failed
Merge pull request #374 from chriscool/make_test_expensive

Add test_expensive target to the main Makefile
Add sharness tests for ipfs add and cat

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Merge pull request #379 from chriscool/fix/nil-options

Add sharness tests for ipfs add and cat
fix(eventlog) configure logging if repo is initialized

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
refactor(repo) mv ConfigureLogger to repo package

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Conflicts:
	cmd/ipfs/main.go
fix(eventlog) apply settings upon initialization

This commit applies the logging settings to the logging system upon
initialization `ipfs init` and `ipfs daemon --init`.

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Merge pull request #380 from jbenet/fix/eventlog-init-condition

fix(eventlog) initialization
Update github.com/maybebtc/logrus dependency

This patch was generated by running:

$ godep update github.com/maybebtc/logrus

Without this, `godep restore` fails like this:

```
$ LANG=C godep restore
fatal: reference is not a tree: 005463f8fb49c4a6f36181e05157e111ec5cf8a3
godep: restore: exit status 128
```

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Merge pull request #385 from chriscool/update_maybebtc_logrus

Update github.com/maybebtc/logrus dependency
refactor(config) use util method

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
log(core) bootstrapping error -> critical

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
commands/http: Allow API requests from whitelisted origins
daemon: Set allowed API origins in API_ORIGIN environment variable
importer: simplified splitter

The splitter is simplified using io.ReadFull, as this function
does exactly what we wanted.

I believe io.ErrUnexpectedEOF should be handled as an EOF here,
but please correct me if I'm wrong.
fix(bitswap/notifications) don't force sender to block on receiver

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>