Fix LPC switch problem, add tests.

Fix #66

This commit added a detailed switch test that covers all
possible LPC switch cases.

LPC compiler was generating and store switch numbers as
POINTER_INT, which happens to be same size of LPC_INT
under 64bit.This commit fixed generated icode for storing
switch cases to use LPC_INT(key) + short(offset) as
lookup key, see icode.c for details.

Also resolved an existing problem under 32bit mode, switch case
constant was being stored as an POINTER_INT, which is
not enough for storing LPC numbers on 32bit platform, see
grammar.y.pre for details.
Adding test for sort_array.
new option SANE_SORTING, for old sorting algo

This only applies to sort_array EFUN.

Using old sorting algorithm, LPC code can only return
-1 and 0 and still sort correctly (but slow), it is
recommended to change code to correctly return 1, 0, -1
instead.

see options.h for details.
Merge pull request #67 from sunyc/master

Fix broken LPC switch, added tests. new option SANE_SORTING
Add the missing old_qsort file.
Merge pull request #68 from sunyc/master

Add the missing old_qsort file.
Replace memcpy with memmove in replace_string().
Fix buffer underun in restore_object()
Replace sort in opc_dump with COMPARE_NUMS routine.
Enable -Wextra in DEBUG build.
Fix typo in access_to_name().
Merge pull request #69 from sunyc/master

Fix problems reported by valgrind, and typos.
make DEBUGMALLOC_EXTENSIONS work under release build
call_out loop protection is now optional

fixes issue #58
Merge pull request #71 from Voltara/issue58-optional_call_out_loop_protection

add CALLOUT_LOOP_PROTECTION.
Merge pull request #70 from sunyc/master

make DEBUGMALLOC_EXTENSIONS work under release build
Move the documentation files to root directory.
Don't free master_ob when error on connect().

This cause driver to crash.
Do not omit frame pointers in any build.

This allows a meaningful backtrace for nearly no cost.
Always initilize parse node before handing out.

This prevent memory corruption on parse error cases.