Put the B2G TOS/PP code into its own module insted of dialog.js

Add some unit tests for it too.
Move the TOS/PP HTML into a template.