Issue #42 Remove line ending chars from alert msg
Forced lower case to device types. Otherwise, devices like Android may raise and invalid device exception
Conflicts:
	controllers/api_controller.py
Hack until we resolve some bugs at the moodle side (only for the moodle branch)