WIP: big refactor

Ideas:
 * separate option parsing code from main
 * start custom running mode in a switch after parsing

For that we create a structure to store suricata run parameters.

This is work in progress but the main idea is here.