added bs for rails
added devicetype and device models and device controller