Fix #965 Remove required attribute from state

Removed the required attribute from the state input in the extended
settings. The included fields are intended to just be examples, but we
shouldn't require the user to update the file to make Bonfire usable for
them.
Partial fix for #956 language fallback to English

Language should fallback to English, restored loading lang files from
module by calling $this->lang->load("{$module}/{$module}"); when the
module is not already in the loader's current list of file paths
Fix #968 loading of second lang file
Add Russian language
Revert "Add Russian language"

This reverts commit 1463522828a21fd927b8197f6c518566599dc53c.
Add russian language
Merge pull request #971 from modgahead/develop

Adding Russian translation
Update README.markdown
Fix #982 Rename MY_Security to BF_Security

Also:
- added override of csrf_show_error() to improve the error message
- cleaned up the csrf_verify() method to return $this like the original
csrf_verify() method and streamlined the code slightly
Builder: failed validation can break URL

$field_total was appended to current_url(), even if current_url()
already included $field_total, so multiple validation passes could
eventually break routing.
Application_helper->module_folders()

Use Modules::folders() for module_folders()
Added @deprecated in the PHPDocs
Newer version of Markdown_helper

Also changed the name of the second parameter on the MarkdownExtended
method of the markdown_extended_helper
BF_Model and Assets Library cleanup

Primarily comments and formatting
Fix #983 Assets::js() base_url issues

used change listed in the discussion for the issue.

Additionally, added a path() method similar to suggestion by @hArpanet
(also in the discussion for the issue), and modified most of the
path-building in the library to use the method.

Finally, some cleanup throughout the library and a fix for some odd
issues with script names getting mangled when removing the file
extension.
Fixes an issue with language fallback to English

Related to #956, if the language file was not found in the current
language, even if it loaded the fallback language, it would default to
show_error("Unable to load the requested language file: "), which made
it pretty pointless to load the fallback file in the first place.
Lang, Activities, Themes

- Additional language fixes (Loader, Modules)
- Clean up Activities module, remove most of the use of $this->db from
the controller, reduce calls to has_permission() by checking the most
common permissions in the controller's constructor, storing them in
controller properties, and passing the result to the views
- Setup themes to allow admin and default themes to share files, such as
the footer (Admin_Controller, themes). Set the default theme as the
fallback when setting the theme in Admin_Controller
Assets Library Changes

- Reduced the number of variables used to store directory names for the
library
- Added check for 'assets.directories' config item to set all
directories for the library at once (uses existing config items if not
found)
- trim slashes from the directories for consistent path handling
(assets_url() adds a trailing slash to its returned value)
- Use a single array to hold all of the scripts for the js methods (will
eventually do this for css methods as well, but the desired variable
name ($styles) is already in use by the css methods, so this will
require a more careful modification of the library)
- added setDebug() and setGlobals() methods, deprecated set_globals()
- added $cssMinify and $jsMinify closures to handle minifcation in a way
that will hopefully facilitate replacement of the methods, if needed
A little cleanup and additional commenting in the BF_Lang class.
Refactor the Base_Controller and Authenticated_Controller to allow for the BC to check if authentication is needed and then run the authentication process. This allows the user's chosen language to be used reliably throughout the application.

I believe this fixes the issues mentioned in #984 and #956, though it does display a few other places where the language support is lagging, like the menus....
Allow 'name' of the module in the module's config file to be localized by prefixing with 'lang:'. Will provide additional help with #984