Add bower support. Convert thrown errors to error objects.