1) Implements the packet handling during timewait state
2) Fixes a minor bug in processPacketInRquest
3) Implements the step 7 of pseudocode (packet type checking)

This commit fixes #89, fixes #90 and fixes #91
Signed-off-by: Ivo Calado <txithihausen@gmail.com>
Signed-off-by: João Correia <lucaskm98@gmail.com>