heavy refactoring, adds new lib functions
simplifies imageAction, adds eventsAction
adds route for tale timeline