py: Use variable length encoded uints in more places in bytecode.

Code-info size, block name, source name, n_state and n_exc_stack now use
variable length encoded uints.  This saves 7-9 bytes per bytecode
function for most functions.
py: Use % str formatting instead of {} in makeqstrdata.py.

Script is equivalent, but now also runs under ancient Python 2.6.
Goes part way to addressing issue #847.
py: Convert (u)int to mp_(u)int_t in mpz, and remove unused function.
py: Make mpz able to use 16 bits per digit; and 32 on 64-bit arch.

Previously, mpz was restricted to using at most 15 bits in each digit,
where a digit was a uint16_t.

With this patch, mpz can use all 16 bits in the uint16_t (improvement
to mpn_div was required).  This gives small inprovements in speed and
RAM usage.  It also yields savings in ROM code size because all of the
digit masking operations become no-ops.

Also, mpz can now use a uint32_t as the digit type, and hence use 32
bits per digit.  This will give decent improvements in mpz speed on
64-bit machines.

Test for big integer division added.
py: Fix definition of sys.maxsize with mpz changes.
unix: Don't use -Wno-error=cpp or #warning; fix strict alias warning.

For the sake of older versions of gcc (and other compilers), don't use
the #warning CPP directive, nor the -Wno-error=cpp option.

Also, fix a strict alias warning in modffi.c for older compilers, and
add a test for ffi module.

Addresses issue #847.
py: Correctly set sys.maxsize value for 64-bit.

Type representing signed size doesn't have to be int, so use special value
which defaults to SSIZE_MAX, but as it's not defined by C standard (but rather
by POSIX), allow ports to set it.
modstruct: Implement 'O', 'P', 's' types for packed structs.

This is required to deal with, well, packed C structs containing pointers.
py: Native emitter now supports delete name & global, and end finally.
tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm.
Merge branch 'master' of github.com:micropython/micropython
py: Add support for emitting native x86 machine code.
py: Allow x86 native functions to take arguments.

Fix some bugs with x86 stack and saving registers correctly.
unix: Fix modffi to be able to return double on x86 machines.
py: Adjust regs for x86 so that 1 more local can live in a reg.
py: Clean up x86-64 native assembler; allow use of extended regs.

Native x86-64 now has 3 locals in registers.
py: Add ioctl method to stream protocol; add initial modselect.
stmhal: Implement generic select.select and select.poll.
stmhal: Add polling ability to UART object.
py: Rename mp_builtin_id to mp_obj_id and make it public.