Adding BC and some fixes.
1.2.x to 1.3.x migration script converted to pure php script.

Coding standards

Coding standards
Fixed wrong throws, closes #923.
Merge pull request #922 from cmfcmf/patch

Adding BC and some fixes.
Move BC layer to make sure it is always loaded.
Merge pull request #958 from cmfcmf/bc-layer

Move BC layer to make sure it is always loaded.
Merge pull request #956 from phaidon/replace-update

1.2.x to 1.3.x migration script converted to a pure php script.