added tag search; begin posts refactoring