Move FlowIncrUsecnt to header file to allow for inlining.

Move FlowIncrUsecnt() and FlowDecrUsecnt() from flow.c to flow.h to
allow for inlining.
Align some structures to cacheline

Align strucutres with pthread mutex locks to start on cachelines to keep
the lock within one cacheline.
Fix creating a backup of htp config.  This is used by unittests that
changed htp config.
Introduce a saner way to validate the completion of request and
response bodies.

Also don't change app state for http from inside inspection.
unittests for gzip, deflate http compression, multiple stacked
compressions, cunning compression that's not what it says it is, etc.

These unittests are tweaked to pass.  When libhtp fixes these issues
we will have to reenable them.
Support for Tile Gx atomic instructions

Tilera's GCC supports the GCC __sync_ intrinsics.

Increase the size of some atomic variables for better performance on
Tile.  The Tile-Gx architecture has native support for 32-bit and
64-bit atomic operations, but not 8-bit and 16-bit, which are emulated
using 32-bit atomics, so changing some 16-bit and 8-bit atomic into
ints improves performance.

Increasing the size of the atomic variables modified in this change
does not increase the total size of the structures in which they
reside because of existing padding requirements. The one case that
would increase the size of the structure (Flow_) was confitionalized
to only change the size on Tile.
Change one more atomic size in detect.h

Change uint16_t to int for better tile atomic performance. Checked with
pahole that it doesn't increase the size of the structure.
Coverity 1038111: fix local overrun of a string in app layer proto detect setup code.
Move SIMD implementations out of detect.c

Move SIMD the implementations of SigMatchSignaturesBuildMatchArray()
for SSE3 and Tile out of detect.c to reduce the size of the file.

Also moved SIMD unit tests to detect-simd.c
Coverity 1038133 fix

Clean up parsing code to suppress Coverity:
Dereference before null check (REVERSE_INULL)

Proper checking was already done.
Coverity 1038135 fix

Small cleanup in the error handling. The extra null check confused
Coverity.
Coverity 1038134 fix

Cleaned up error check. "ipdup" can only be non-NULL there, so remove check
that confused coverity.
Coverity 1038138 fix

Clean up parsing code to suppress Coverity:
Dereference before null check (REVERSE_INULL)

Proper checking was already done.
geoip: never try to store more locations than possible (Coverity 1038517)
Fix memory leak on invalid luajit signature. Coverity 1038520.
Coverity 1038129 fix

Don't leak memory on malloc error in b2gm mpm implementation.
Coverity 400477: pcre_get_substring retval

Add missing return code check to pcre_get_substring call.
Coverity 1038089: error check fseek call
Coverity 1038094: remove dead code from defrag hash
Coverity 1038095: remove dead code from defrag hash timeout code