py: Add copyright/license header to each file.
mingw: Add implementation of realpath()

The mingw port used _fullpath() until now, but the behaviour is not exactly
the same as realpath()'s on unix; major difference being that it doesn't
return an error for non-existing files, which would bypass main's error
checking and bail out without any error message.

Also realpath() will return forward slashes only since main() relies on that.
Merge pull request #554 from stinos/mingw-realpath

mingw: Add implementation of realpath()
py: Print tag/version/git describe in uPy banner.
Merge branch 'master' of github.com:micropython/micropython
Don't print git hash as well as git tag in banner.
mingw: Fix number of exponent digits in floating point formatting

By default mingw outputs 3 digits instead of the standard 2 so all float
tests using printf fail. Using setenv at the start of the program fixes this.
To accomodate calling platform specific initialization a
MICROPY_MAIN_INIT_FUNC macro is used which is called in mp_init()
Add device ID to deploy make target for stmhal.
py: Add --dirty flag to git describe.
Merge pull request #557 from cjbarnes18/device_id_in_deploy

Add device ID to deploy make target for stmhal.
py, stream: Implement readlines for a stream.
Merge branch 'mingw-float-printf' of github.com:stinos/micropython into stinos-mingw-float-printf
windows: Argument to () function should be (void).
Merge branch 'stinos-mingw-float-printf'
Merge pull request #535 from pfalcon/blurb

Proposed license/copyright file header.
Add license header to (almost) all files.

Blanket wide to all .c and .h files.  Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.

Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
tools: In build-stm-latest, replace git hash with git tag.
updated to fit new acceleration and time/millis

Changed pyb.accel() and pyb.time() to the new pyb.Accel() object and pyb.millis() function.
Also shortened the loop so the writing is finished before the USB connection messes things up.
Merge pull request #561 from turbinenreiter/patch-1

updated to fit new acceleration and time/millis
updated to use new pyb.Accel() object