Major refactor.

Seperate vector.c and vector.h

Added -Werror -Weverything options.

Fixed warnings generated by compiler option changes.

Signed-off-by: Spencer Deinum <spencerdeinum@gmail.com>