lib: intro `FStream::fd`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/opts: cleaner init

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests: add passing Int in basic Java test

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: `sys` and `exit` are toplevel

Signed-off-by: Jean Privat <jean@pryen.org>
typing: no more special case for `sys` and `exit`

Signed-off-by: Jean Privat <jean@pryen.org>
lib/sqlite3: add the service `String::to_sql_string`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/sqlite3: fix conversion of NativeString to String

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/sqlite3: fix empty row on select without results

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: intro percent encoding/decoding methods

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: intro `Text::is_hex`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: intro Text::split_once_on

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: intro libevent

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: intro the web server nitcorn

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
examples: add two nitcorn examples

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
android: fix priority annotations bug

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
examples: remove annotations used to avoid bug in mnit_simple

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
java: cast arguments passed to JNI

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests: update sav/base_gen_reassign because line changes in kernel.nit

Signed-off-by: Jean Privat <jean@pryen.org>
pnacl: redef exit as a top-level

Signed-off-by: Jean Privat <jean@pryen.org>
Merge: The Web server nitcorn, libevent and others

This PR contains many fixes and a major rework of the Nitcorn project by Jean-Philippe Caissy, Frederic Sevillano and Guillaume Auger.

Nitcorn is a Web server framework to create sever-side applications in Nit. It is currently used at http://tnitter.xymus.net/ and http://vps.xymus.net/nit/index.html The README files is missing and will be added soon.

What it does do:
* GET and POST support (for small uploads)
* Virtual hosts and routes
* Sessions
* Reading cookies
* Adding virtual hosts (and interfaces) on the fly
* Adding/removing route on the fly
* Play well with existing modules `drop_privileges`, `md5` and `sqlite3`.

What it does not do (yet):
* Encryption
* Support receiving big files
* Writing cookies
* Remove virtual hosts (and interfaces) on the fly

The Tnitter project will be in a future PR.

Pull-Request: #620
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>