Improved Crypsis build script based of PHP PHING

PENDING PULL REQUEST, DO NOT MERGE!!!! YET...

This pull request should be used for reference of incoming changes. It contains some merges from external remote branches.