Move constants module to shared directory.

Since constants.h is used all over, might as well make the module first.
Make maximum string length configurable.
Increase size of some strings likely to overflow.
Merge pull request #140 from QuLogic/short-strings

Fix too-short strings