move hardcoded passes into src/

Since these passes are hardcoded, mantain them
under src subdir
add missing header files

compiler complained...
remove unused variables

there was just a lot of them
misc fixes for compiler warnings

mostly types (comparsion signed/unsigned etc.)
dump: align printing size to 2 places

nicer..
interactive: print message in readable form by default

So it looks similary to WAYLAND_DEBUG=1, but we can stop whenever
we want :)
wldbg: always resolve objects

Initialize resolve pass in wldbg_init. All passes can use it then.
resolve: do not add resolve pass when it is loaded

Add a flag and suppress adding, when it is already added.
wldbg: add WLDBG_UNUSED macro

this expands to __attribute__((unused)). This is useful in passes,
because not in all passes we use all arguments and the compiler
flood us with warnings - which are useful otherwise. So if we know
that we do not use particular parametr, we can mark it as WLDBG_UNUSED
interactive: suppress "unused" warnings

Use WLDBG_UNUSED where needed
interactive: fix another warning

type for printf
interactive: add 'send' command

write bytes into a connection. Needs work, this is a first commit
(I needed just to test something)
interactive: add shortcut for info

Annoying to type 'info' all the time
dump: allow dumping data to file

Just store the data from wire into given file.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
dump: allow dumping only one side

Now we can dump only client or server messages.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
dump: allow count statistics

Count number of messages and bytes transfered if user wants.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
dump: suppress output when user needs

with no-output argument, dump pass won't print any readable output.
It's useful when user want only the statistics.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
dump: get rid of compiler warnings

misc fixes for compiler warnings. Mostly about wrong type for printf
or (un)signed comparsion mismatch.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>