Add main http/fcgi handler, also more controller workings

Signed-off-by: Robert Xu <robxu9@gmail.com>