Added  logging. Added categories editing pages. Logging improvements