Simplified encoding handling.
Added web socket support and sample.
Ignore cache file.