Bug fixes and code refactoring

rake task for regenrating thumbnails is fixed
asset selector collections tab fix
more code refactoring