Add code for translating functions calls in patterns

This is illegal but we can use for adding explicit quote/unquote calls
in patterns. Also remove imports and pirufied interface functions.
Add default MODULE and LINE macros
Cleanup handling of warnings and extract functions from .hrl files