Themes.php refactoring

- made prepareThemeEditContext() a method, action_edit_list and action_edit_browse their own subactions (now action_browse and action_themelist)
- couple of db queries moved to subs (there are still lot's in the Controller, will pick these later)