Ads, types, pictures controllers and views

+some fixes for models and tests