libs / config system hooked up / more stuff uses sqlite

Yes I know it doesn't work just yet.. committing cause I don't want
another 150+ file change commi
libs hooked up, config system uses xml file, it some what works
committing where I am at so I can move to my laptop and work
Copyright 2014

1. Fixes to ss export
2. all core modules have a version again
3. synced sqlite3 with the most current builds
more coding...

1. Main Loop events
2. ErrMsgStr()
3. main.c got alot smaller now that all the functionality was moved
outwards..

more to come.. time to modularize some more code
Spamfilters are now modularized, and are only loaded on networks that support them.

Removed event_229.c from the core, and replaced with spamfilter module
fixed memory leaks in the local kill parsers / ugly mem leak in log_ctcpversion

Jobe blames Hal.. so we are blaming Hal for sstrdup() into a variable
for no reason
quick post so I get something done  on v2

1 : removed speed testing code, was never useful
2 : Config options to do backtrace on sql query and in general
3 : on segfault denora prints the os/cpu and sql/xmlrpc enabled to the
output.. need to add what protocol/encmod/sqlmod
a lot of clean up coding

1. SQLINE command modularized
2. null routed messages are setup in a module
3. core modules don't use sql_escape()
4. variable clean up removed all the unused ones
5. gutted out the unused language stuff
SGLINE/XLINE are now modules

More code clean up.. putting v2 aside for a few days to write debug
branch
Some more logic fixed

Okay BUFSIZE = 1024 then we have
ircsnprintf(modebuf, sizeof(modebuf), "%c", *modes);
hmmm think we can get away with a slightly smaller buffer size..

Then you got newav[127]; when we use only 4 slots.. again smaller size

This was back ported already
hooked up the new indexer which fixed v1.5 uid problem
gotta commit where I am at to switch over to v1.5 and finish testing
Network bans are modular

Started some work on moving some core parts to a general lib