add a api for search code

add the api "/api/getcodelist/"
two parameters ,one is index ,another is timestamp.
add folder libs and include jsonencoder.py for encode json