Changed: Adapted to latest build tool.
Changed: Updated copyright to year 2014.
Refactored: Various refactoring, too lazy to split.