fix #375: application path resolution

change the way application index is built:
only .app files contained within ebin/ and src/ directories
are now used to determine application path - it allows not
to treat application patches as applications.
fixed #373: record_info compile-time operator flagged as unrecognized function;
also proper processing for module_info/0-1

Conflicts:
	src/org/intellij/erlang/psi/impl/ErlangFunctionReferenceImpl.java