Added Deprecation documentation for developer docs

I have added guidelines on how to add deprecation warnings and test for deprecation for developers. Suggestions are always welcome.