Enforces valid locales in translation classes
Add a language picker
Remove debug output and format code
Refactor to new store
Removes sortations for catalog counts

Sortation isn't neccessary for counting and it slows down the query
Filters records for duplicates before aggregation

This fixes the problem of counting product attributes in combination with a limit
Merge pull request #535 from nsendetzky/2014-03-04_locale-check

Enforces valid locales in translation classes
Keep site id after changing language
Keep locale id if site changes
Merge pull request #536 from nsendetzky/master

Fixes and optimizes aggregation
Defines the _() method if gettext is not available
Fixes shipping vs. new costs property
Adds ctime to order item so Hiphop doesn't fail in date_create()
Uses common tmp/ directory for dynamically created files
Fixes setup of error handler method
Doesn't use rewind() because Hiphop doesn't seem to support it
Removes check for null value of eval() calls because of Hiphop inconsistency with the PHP documentation
Minor beautification
Merge pull request #537 from nsendetzky/master

Improves support for Facebooks Hiphop VM
Skips test when executed with Hiphop VM