Realize photoindex gearman worker.

1. test.c. As a test lib.
2. libphotoindex.c. Wrapper the photoindexc API.
3. photoindex.lua. Call the photoindex API.