move log server code to ilog module
move web log client to client lib
create and use client js lib server middleware