Improve hash function for apply cache.

This seems to reduce collisions and should provide better
performance.
Make comment for APPLY_CACHE_BITS more obvious
Added a TODO to handle LPC runtime error more elegantly.
Remove duplicated sig_hup handler.
Clear tick_events queue on exit.
Register auto reclaim_objects() call.
Update travis config.