built logging API routes models and controllers. Added server logging functions.