1) Fixed a bug of the new thread creation API. I used to integrate the
init_data (index for the init data entry) into the first
sched_param. In that case, the bits belong to init_data could be
random value when using legacy method to create thread. Changed it to
integrate init_data with spdid - now the first parameter is init_data
<< 16 | spdid. This way it works for both legacy and new APIs.

2) Fixed the lws_static script. Web server loads correctly. Probably
still won't handle requests (which is an old issue).
Small changes before changing syscall entry dispatching.
Unified all Composite sysenter entries. Now we have only 1 entry in
asm, and we dispatch IPC, return and syscalls in C.

Also, renamed: ainv_send => asend, ainv_wait => areceive