Adds specs and removes unused code

* specs for admin/pictures_controller
* specs for admin/attachments_controller
* specs for base_controller#layout_for_page
* specs messages_controller
* removes Array & Hash extensions