updated to use a more approp. redirect call
improved function name for: getAndClearMessage(..)
added smarty init to set info or err msg vars
fixed bug with if(), because status code 0 was being evaluated as null
using only '=='
refactoring so that status message data is sent to display via smarty
vars