resolves #155 abstracting class names has-error has-success

resolves issue #155 
by removing the hard-coded class names used by twitter bootstrap
to allow developer to use other class names used by other css frameworks, i.e. Zurb Foundation

also moving some code around for better readability