reorganize files. Added isOnline flag to user. removed unuser files. abstracted utils