added and/or/not logic and fixed feed url builder, also I used model instead of view for a lot of stuff I shouldn't have.