Initial split into libsvc
More work on libsvc split
Move 'urlshorten' to libsvc
Move ctrlsock to libsvc
Split mysql code to libsvc
Split src/cmd.[ch] away into libsvc

Also make it a bit more generic