* Fixed a bug causing the api server to crash, when a unknown command was received
* Fixed a bug when handling too small packets

Signed-off-by: Daniel Marius Bub <daniel.bub@thebub.net>