Token Printing

Add  printing tokens to a label printer.

Gemfile
- add cups and prawn pdf generator

people_controller.rb
- move qr code generation to services
- add token PDF generation accessible through person/<id>/token.pdf
- add token print accessible through person/<id>/print_token which redirects to people list

token.rb
- QR code generation moved to here
- generate token PDF using Prawnpdf

printers.rb
- print token using cups.

qr.html.erb
- Remove java script rendering of QR code as now token PDF retrieved from server

token.html.erb
- View for token.

config/application.rb
- Add autoload path

config/routes.rb
- Add paths for print_token and token

tests/printers_test.rb
tests/token_tests.rb
- initial unit tests
Merge remote-tracking branch 'davidbernard_disasterregistration/token_printing'
Fixes to token layout and Gemfile fixes from merge
Add profile for larger labels
Merge remote-tracking branch 'origin/leaderboard'
Add token printing

people_controller.rb
- Move QR code generation to app/services/token.rb
- Add mime type application/pdf to “show” for generation of printable token
- Add GET/people/1/print_token to invoke printing of token

app/services/token.rb
- Moved QR code generation to here
- Added creation of token PDF based on different media types

config/initializers/qr_code.rb
- set configuration of media. Currently DC03 => 29 X 90 mm DC04 => 38 X 90 mm for Brother QL-5XX printers.

Gemfile.lock
- Merged from “leaderboard” on “public_activity”
Minor fixes

GET /people/1/qr gives qr code and canned info.
GET /people/1/token gives token as PDF
Change label to Nickname Specialty Superpower
Add install of cups to travis configuration.
(Require for the cups gem)
Get more information about cups on travis
Add cups library
Fixes from review comments.
Merge pull request #8 from davidbernard/token_printing

Token printing