getCategories and getThreads are refactored and working with unit tests, next commit will include refactor of getMessages
MessageService getMessages refactored, pluss getMore, and update fucntions working with unit tests. Next refactor will be messageBoardCtrl