implemented basic version of requirejs stat collector and module group calculator
implemented basic version of requirejs stat collector and module group calculator
code style
improved requirejs optimization group detection and stat collecting
Merge branch 'master' of github.com:cordjs/core into smart-requirejs
requirejs group optimization improvements:
* introduced 100% correlation optimization stage which works very well
* extracted heuristic optimizer into separate class
* introduced optimizer group and group repository abstractions
* group optimization algorithm is now considered sufficient
improved group optimizer to be able to run several iterations
Merge branch 'master' of github.com:cordjs/core into smart-requirejs
future improvement:
* added Future.select() to "listen" to list of futures
* added Future.call() to upgrade ugly node-style callback-result function calls to pretty composable Future-result.
Future.call() can now be used to execute object instance method in it's context
Future: introduced link-method - inversion of when-method
Fixed terrible bugs in Future.zip and Future.sequence
Widget template compilation improvement:
* fully extracted compilation logic from the Widget class to the WidgetCompiler
* made WidgetCompiler dynamic (before it was a singleton) so we can compile many Widgets concurrently
fixed little bug
Future: added mapFail() and flatMapFail() to be able to convert error result into meaningful successful result where applicable
fixed Future.sequence() fail case
Merge branch 'master' into smart-requirejs

Conflicts:
	utils/Future.coffee
	widgetCompiler.coffee
* fixed Switcher template compilation issue
* fixed compatibility issue for the node-static for node 0.10
* fixed wrong usage of Future.zip()
improved cord-w exception when requirejs can't load the module
Merge branch 'master' into smart-requirejs

Conflicts:
	browserInit.coffee