Improved CodecLookupService

- Changed nextId to an AtomicInteger
- General improvements
- Minor changes to various classes

Signed-off-by: thehutch <th3hutch@yahoo.co.uk>