Fixes bug with resources copying.
Removes unnecessarily array reversal.
Adds rebuild feature. Fixes some async file issues.
Fixes sorting issues... again.
Betters sorting solution by moving it to the Jade templates.