Issue 3796

Changes:

- Add `manual` flag to `integrate`
- Bugfixes

Fixes https://code.google.com/p/sympy/issues/detail?id=3796