doc: Rewrite task tutorial intro

It doesn't quite reflect reality
auto merge of #5713 : brson/rust/tutorial2, r=thestinger

It doesn't quite reflect reality
mk: mips toolchain config
rt: improve mips backend
fix mac build and comment on stack size check
Tutorial: rename variable to avoid confusion.
auto merge of #5716 : dhardy/rust/master, r=thestinger
Add cell#with_mut_ref for handling mutable references to the content.
auto merge of #5431 : crabtw/rust/mips-rt, r=brson

Because the PTHREAD_STACK_MIN of my system is larger than default size, I add the stack_sz check to prevent assertion failure.

Besides, libuv has to be modified because some flags are different from other targets. Instead of using hardcoded numbers, I change them to predefined symbols.

By the way, the toolchain I used is http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/mips-gnu-linux

libuv patch: http://people.cs.nctu.edu.tw/~jyyou/rust/mips-uv.patch

Below is the current test result.

* core test

  stackwalk tests can cause segfault so I ignored them.

```
failures:
    io::tests::test_read_be_int_n
    io::tests::test_read_buffer_big_enough
    io::tests::test_read_f32
    io::tests::test_read_write_be
    io::tests::test_read_write_f32
    io::tests::test_read_write_le
    io::tests::test_simple
    io::tests::test_write_empty
    rand::tests::rng_seeded_custom_seed2
    unstable::uvll::test::test_uv_ll_struct_size_addrinfo
    unstable::uvll::test::test_uv_ll_struct_size_uv_timer_t

result: FAILED. 596 passed; 11 failed; 49 ignored
```

* std test:

```
failures:
    time::tests::run_tests

result: FAILED. 330 passed; 1 failed; 21 ignored
```
auto merge of #5722 : metajack/rust/cell-with-ref-mut, r=catamorphism
refactor check_call_inner to have a better name and be readable
Move the replacement of bound regions out from `check_arguments` and into check_call / method_resolution
Rather than storing a list of ty::method per trait, store one ty::method
per method and list of def-ids per trait.
Compute a ty::method for methods that appear in impls as well
Pass around a pointer to the ty::method rather than the individual bits of info
Add a (currently unused) "transformed self type" pointer into ty::method
Refactor so that references to traits are not represented using a type with a
bare function store (which is not in fact a kind of value) but rather
ty::TraitRef.  Removes many uses of fail!() and other telltale signs of
type-semantic mismatch.

cc #4183 (not a fix, but related)
Fix various warnings, NOTEs, etc
Add comment explaining method visibility
rustc: Be careful about calls to fn types that contain nested errors