Improved CodecLookupService

- Changed nextId to an AtomicInteger
- General improvements

Signed-off-by: thehutch th3hutch@yahoo.co.uk